package com.gozur.leafrecognation;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.widget.Button;

public class List extends Activity {

	Button btnTambah;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.list_layout);
		
		//tombol tambah data
		btnTambah = (Button) findViewById(R.id.btnAdd);
		btnTambah.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent tambah = new Intent(v.getContext(), AddData.class);
				startActivityForResult(tambah, 0);
			}
		});
	}

}
